package com.wzh.design.proxy.proxy1;

/**
 * @description:
 * @author: WZH
 * @time: 2021/6/9 14:13
 */
public class BuyHouseProxy implements BuyHouse {

    private  BuyHouse buyHouse;

    public  BuyHouseProxy(final BuyHouse buyHouse){
        this.buyHouse = buyHouse;
    }


    @Override
    public void buyHosue() {
        System.out.println("买房前准备");
        buyHouse.buyHosue();
        System.out.println("买房后装修");
    }
}
